/*
 * Copyright (C), 2002-2017, 苏宁易购电子商务有限公司
 * FileName: MainPushErrorConstants.java
 * Author:   15050536
 * Date:     2017年1月9日 下午3:42:19
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.suning.sawp.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * 主推的一些错误常量
 *
 * @author 15050536 石键平
 */
public class MainPushErrorConstants {

	private MainPushErrorConstants() {
	}

	public static final Map<String, String> MAIN_PUSH_ERR_MAP = new HashMap<String, String>();

	public static final String TASK_ERR_PARAMS = "-1";

	public static final String TASK_ERR_000 = "E000";
	public static final String TASK_ERR_001 = "E001";
	public static final String TASK_ERR_002 = "E002";
	public static final String TASK_ERR_003 = "E003";
	public static final String TASK_ERR_004 = "E004";
	public static final String TASK_ERR_005 = "E005";
	public static final String TASK_ERR_006 = "E006";
	public static final String TASK_ERR_007 = "E007";
	public static final String TASK_ERR_008 = "E008";
	public static final String TASK_ERR_009 = "E009";
	public static final String TASK_ERR_010 = "E010";
	public static final String TASK_ERR_011 = "E011";
	public static final String TASK_ERR_012 = "E012";

	public static final String TASK_ERR_100 = "E100";
	public static final String TASK_ERR_101 = "E101";
	public static final String TASK_ERR_102 = "E102";
	public static final String TASK_ERR_103 = "E103";
	public static final String TASK_ERR_104 = "E104";
	public static final String TASK_ERR_105 = "E105";
	public static final String TASK_ERR_106 = "E106";
	public static final String TASK_ERR_107 = "E107";
	public static final String TASK_ERR_108 = "E108";
	public static final String TASK_ERR_109 = "E109";
	public static final String TASK_ERR_110 = "E110";
	public static final String TASK_ERR_111 = "E111";
	public static final String TASK_ERR_112 = "E112";
	public static final String TASK_ERR_113 = "E113";

	public static final String TASK_ERR_999 = "E999";

	static {
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_PARAMS, "参数错误");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_000, "所选月份任务已创建");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_001, "品类不存在");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_002, "品类数量不合要求");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_003, "占比数据不能为空");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_004, "品类不可以重复");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_005, "占比要求sheet %s数据格式有误");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_006, "所选月[%s]已创建任务");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_007, "所选月[%s]未创建总部任务");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_008, "占比sheet与AB类主推明细sheet中的品类不一 一对应");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_009, "%s,款数名称不可以为空");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_010, "%s,商铺编码不可以为空");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_011, "%s,主推类型不可以为空");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_012, "%s,品牌不可以为空");

		MAIN_PUSH_ERR_MAP.put(TASK_ERR_100, "请先创建总部任务");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_101, "款数与商品关系数据为空 ");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_102, "AB主推明细sheet %s数据格式有误,至少需要六列数据");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_103, "%s,商品编码[%s],不可以重复");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_104, "%s,款数[%s],对应的主推类型不唯一");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_105, "查询大区数据异常,请稍后再试");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_106, "sheet:[%s],大区数量不匹配,库中%s个，导入的文件中%s个。");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_107, "sheet:[%s],大区数据匹配错误,%s");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_108, "sheet:[%s],大区数据为空");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_109, "sheet:[%s],款数数据匹配错误,%s");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_110, "sheet:[%s],第%s行，第%s列，目标数量:'%s'不可以是小数或负数");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_111, "未查询到款数数据,请先创建总部任务");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_112, "sheet:[%s],没有款数数据");
		MAIN_PUSH_ERR_MAP.put(TASK_ERR_113, "抱歉，存在风险操作，请回首页重新上传。");

		MAIN_PUSH_ERR_MAP.put(TASK_ERR_999, "未知错误");
	}
}
